package com.aaa.sbm.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Document(indexName="index_order",type="order_types",shards=3,replicas=2)
@Data
public class Order {
    @Id
    private long id;
    private String orderNo;
    private String  orderName;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd" ,timezone="GMT+8")
    private Date createTime;
    private Integer customId;

}
